package com.shanzhu.volunteer.modules.volunteer.entity.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.shanzhu.volunteer.common.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;


@TableName(value = "campus_file")
@Data
@EqualsAndHashCode(callSuper = true)
public class FileEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 文件id
     */
    @TableId
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long fileId;

    /**
     * 文章id
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long contentId;

    /**
     * 用户id
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long userId;

    /**
     * 储存url
     */
    private String url;

    /**
     * 文件名
     */
    private String fileName;


}